package edu.ptu.communityplatform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import edu.ptu.communityplatform.domain.entity.Car;
import edu.ptu.communityplatform.domain.vos.CarPageVo;
import org.apache.ibatis.annotations.Param;

/**
 * @BelongsProject: communityPlatform
 * @BelongsPackage: edu.ptu.communityplatform.mapper
 * @Author: HYJ
 * @CreateTime: 2025-04-06  22:00
 * @Description: TODO
 * @Version: 1.0
 */
public interface CarMapper extends BaseMapper<Car> {
    Long getCarIdByPersonId(Long personId);

    IPage<CarPageVo> getPage(
            Page<Car> page,
            @Param("plotId") Long plotId,
            @Param("carNumber") String carNumber
    );
}
